//
//  ImManager.h
//  CustomerServer
//
//  Created by 涂俊 on 2019/6/20.
//  Copyright © 2019 Facebook. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface ImManager : NSObject

+(instancetype) getInstance;

//添加接收im消息的回调
- (void)addImMessageObserver:(id)notificationObserver selector:(SEL)notificationSelector;

// 登录环信
- (BOOL) imLoginWithUsername:(NSString *)username password:(NSString *)password;

// 登出环信
- (BOOL) imLogout;

// 获取环信未读消息数量
-(NSNumber *)getUnreadMsgNum;

@end

NS_ASSUME_NONNULL_END
